<?php

/**
 * 一级栏目推荐位
 */
Route::get('application/column_recommends', ['as'=> 'application.column_recommends.index', 'uses' => 'Application\ColumnRecommendController@index']);
Route::post('application/column_recommends', ['as'=> 'application.column_recommends.store', 'uses' => 'Application\ColumnRecommendController@store']);
Route::get('application/column_recommends/create', ['as'=> 'application.column_recommends.create', 'uses' => 'Application\ColumnRecommendController@create']);
Route::put('application/column_recommends/{column_recommends}', ['as'=> 'application.column_recommends.update', 'uses' => 'Application\ColumnRecommendController@update']);
Route::patch('application/column_recommends/{column_recommends}', ['as'=> 'application.column_recommends.update', 'uses' => 'Application\ColumnRecommendController@update']);
Route::delete('application/column_recommends/{column_recommends}', ['as'=> 'application.column_recommends.destroy', 'uses' => 'Application\ColumnRecommendController@destroy']);
Route::get('application/column_recommends/{column_recommends}', ['as'=> 'application.column_recommends.show', 'uses' => 'Application\ColumnRecommendController@show']);
Route::get('application/column_recommends/{column_recommends}/edit', ['as'=> 'application.column_recommends.edit', 'uses' => 'Application\ColumnRecommendController@edit']);



/**
 * 一级栏目添加推荐位数据
 */
// 一级栏目推荐视图
Route::get('application/column_recommends/recommend_datas/view',['as'=>'application.column_recommends.add_recommend_data','uses'=>'Application\ColumnRecommendController@addRecommendDatas']);

// 渲染datatable数据
Route::post('application/column_recommends/recommend_datas/datas',['as'=>'application.column_recommends.datas','uses'=>'Application\ColumnRecommendController@getDataByModel']);


// 保存推荐数据
Route::post('application/column_recommends/recommend_datas/datas/store',['as'=>'application.column_recommends.store','uses'=>'Application\ColumnRecommendController@recommendStore']);
